﻿@using TjZheng.Domain.DataEntity;
@using CJAtech.BBS.DataEntity;
@inherits CMSWebViewPage<BadWords>
@{
    ViewBag.Title = "标签信息编辑";
    Layout = "~/Views/Shared/_EditLayout.cshtml";
    DbSetInfo objDbSetInfo = ViewBag.DbSetInfo as DbSetInfo;
}
@section Head{
    @*@Html.CreateDialogSource()*@
    @*@Html.CreateUpLoadSource()*@
    @*@Html.CreateEditorSource()*@
}
<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'center',border:false" class="xhidden">
        <div class="top-block">
            @CurrentButtonTool.Create()
        </div>
        <form id="fr_badwords" method="post">
            @*@Html.AntiForgeryToken()*@
            <table class="tblContent">
                <colgroup>
                    <col class="colTitle" />
                    <col class="colContent" />
                </colgroup>
                <tr>
                    <td><span class="txtNoNull">*</span>敏感词:</td>
                    <td>
                        @Html.Hidden("objProvide.Id", Model.Id, false)
                        @Html.StringBox("objProvide.Word", Model.Word, true, "请输入敏感词", null, ValidType.Length(256))
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
@section Bottom{
    <script type="text/javascript">
    function Save() {
        var objFormEntity = new FormEntity("#fr_badwords");
        objFormEntity.url = "/bbs/badwords/save?SetId=@objDbSetInfo.SetId";
            objFormEntity.submitSuccess = function (InvokeResult) {
                if (InvokeResult.ResultCode == "Success") {
                    ShowMessage(InvokeResult.ResultMessage);
                    Back();
                } else {
                    ShowMessage(InvokeResult.ResultMessage);
                }
            };
            objFormEntity.isClearData = false;
            objFormEntity.submit();
        }
        function Back() {
            window.location = "/bbs/badwords?SetId=@objDbSetInfo.SetId";
        }
    </script>
}

